<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>

    <style>
        #gouwuche{
            display: none;
        }
    </style>

<script>

    function gouIn() {
       var d= document.getElementById("gouwuche").style.display="block";

    }

    function gouOut() {
        document.getElementById("gouwuche").style.display="none";
    }
</script>


</head>
<body>

<div id="gouwuche" onmouseover="gouIn" onmouseleave="gouOut">
    <p1>购物车</p1>
</div>

</body>
</html>